home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / crash_du.swf / scripts / DefineButton2_101 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2010-04-12  |  465 b   |  27 lines

  1. on(press){
  2.    if(email eq "")
  3.    {
  4.       fe.gotoAndStop(2);
  5.    }
  6.    else
  7.    {
  8.       fe.gotoAndStop(1);
  9.    }
  10.    if(name eq "")
  11.    {
  12.       fn.gotoAndStop(2);
  13.    }
  14.    else
  15.    {
  16.       fn.gotoAndStop(1);
  17.    }
  18.    if(email ne "" && name ne "")
  19.    {
  20.       url = "http://www.crashtestdummyolympics.co.uk/cgi-bin/submitscore.pl";
  21.       loadVariables(url,this,"GET");
  22.       enteredHighScore = 1;
  23.       gotoAndStop("highScores");
  24.       play();
  25.    }
  26. }
  27.